package com.duofan.gmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.duofan.gmall.common.utils.PageUtils;
import com.duofan.gmall.product.entity.BrandEntity;
import com.duofan.gmall.product.entity.CategoryBrandRelationEntity;
import com.duofan.gmall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author Vincent
 * @email wu_peizhen@126.com
 * @date 2023-05-07 21:43:27
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryBrandRelationEntity> catelogList(Long brandId);

    void saveRelation(CategoryBrandRelationEntity categoryBrandRelation);

    void updateBrand(Long brandId, String brandName);

    void updateCategory(Long catelogId, String catelogName);

    List<BrandEntity> getBrandsByCatId(Long catId);
}

